Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Syntax of the action rules
An action rule contains a delimited list of function references and properties that return a logical result. The syntax for rules is as follows:
A property is the name of a SmartObject property that is retrieved across the specified
Itemlink. If the property is of data typeLOGICALand you want theTRUEvalue to be used in the expression, then you simply include the name of the property in the rule. For example,DataModifiedmeans ifDataModifiedisTRUE. If you want to use the negation of the property in the expression, then you must include it as a value, following an equal sign, as inDataModified=no.If the property returns some other value, then you specify a value or a comma-separated list of values to match. A property reference with a list of values evaluates to
TRUEif the property value matches any value in the list.A function is the name of a Progress 4GL function that is executed across the specified Item link. You can only use functions that return a
LOGICALvalue. To differentiate a function reference from a property, follow the name of the function with empty parentheses, as incanNavigate().A rule can be built up from any number of elements, each involving a single property or function. Separate the elements by the AND or OR keyword. Complex expressions requiring grouping of elements with parentheses cannot be used in action rules. If you must perform a calculation complex enough that the action rule syntax is not sufficient for it, then you should define a function of your own in the Item link target that does the calculation and returns
TRUEorFALSE, and use it in your action rule.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |